from sklearn import datasets
import matplotlib.pyplot as plt
import seaborn as sns
from scipy import stats

diab = datasets.load_iris()

x1 = [item[0] for item in diab.data]
sns.set_style(style='ticks')
#sns.distplot(a=x1,kde=True,rug=True)

#sns.displot(data=x1, kind="ecdf")

#plt.savefig('test_ecdf.png')

res = stats.ecdf(x1)
print(res.cdf.quantiles)
print(res.cdf.probabilities)



sns.boxplot(x=diab.target, y=x1)


plt.savefig('test_boxplot.png')